# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pytest-trio
pkgver=0.6.0
pkgrel=0
pkgdesc="pytest plugin for trio"
url="https://github.com/python-trio/pytest-trio"
arch="noarch"
license="MIT OR Apache-2.0"
depends="python3 py3-pytest py3-trio py3-outcome py3-async_generator"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis"
source="https://pypi.python.org/packages/source/p/pytest-trio/pytest-trio-$pkgver.tar.gz"
builddir="$srcdir/pytest-trio-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="." pytest --pyargs pytest_trio
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="662719e67f5d71f73b2e5389592812b79b296b7fdd8ff6f491961bd5444958e829c46a3bd79f08e9b8b8638125c48edd459f599acc2e071fc0cf8013525a3739  pytest-trio-0.6.0.tar.gz"
